
#ifndef __SIMPLE_STRING_H__
#define __SIMPLE_STRING_H__

typedef struct {
  int begin;
  int end;
} str_section;
int MINI(int a, int b);
int str_index(char* buffer, int buffer_len, char pattern, int begin);
int str_split(char* buffer, int buffer_len, char split_char, str_section* out,
              int max_cout);
int section_str(str_section section, char* buffer, char* out_buffer,
                int buffer_len);
#endif